package com.sky.module.system.support;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.common.domain.form.FileQueryForm;
import com.sky.module.suppot.file.domain.entity.FileEntity;
import com.sky.module.system.file.service.FileService;
import com.sky.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @date 2023/3/1 1:02
 **/
@RestController
@RequestMapping("/api/file")
public class AdminFileController {

    @Autowired
    private FileService fileService;

    @RequestMapping("page")
    public Result<?> queryPage(@RequestBody FileQueryForm fileQueryForm) {
        Page<FileEntity> page = fileService.queryPage(fileQueryForm);
        return Result.ok().message("获取成功");
    }
}
